package com.qingxin.ui.bean;

import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Vector;

import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class UILayoutCenter {

	private String datatype;
	private List<UICenterTab> centerTabs = new Vector<UICenterTab>();
	private Map<String, UICenterTab> tabMap = new Hashtable<String, UICenterTab>();
	
	public String getDatatype() {
		return datatype;
	}
	public void setDatatype(String datatype) {
		this.datatype = datatype;
	}
	public List<UICenterTab> getCenterTabs() {
		return centerTabs;
	}
	public void addCenterTab(UICenterTab centerTab){
		centerTabs.add(centerTab);
		tabMap.put(centerTab.getId().toLowerCase(), centerTab);
	}
	public UICenterTab getCenterTab(String id){
		return tabMap.get(id.toLowerCase());
	}
	
	
}
